|
Defines |
| #define | S(val, shift) val = (((val) << shift) | ((val) >> (32-shift))) |
| #define | W_GETLONG(x) W[x] = deByteOrderBE32(*(unsigned long *)(&Buffer[x*4])) |
| #define | F(T) (W[(T + 13) & 0x0F] ^ W[(T + 8) & 0x0F] ^ W[(T + 2) & 0x0F] ^ W[T & 0x0F]) |
| #define | TEMP(A, B, C, D, E, WS) (A + ft(B, C, D) + E + WS + (unsigned long)K) |
| #define | L(A, B, C, D, E, T) |
| #define | A NewHash[0] |
| #define | B NewHash[1] |
| #define | C NewHash[2] |
| #define | D NewHash[3] |
| #define | E NewHash[4] |
| #define | K 0x5A827999 |
| #define | ft(B, C, D) ((B & C) | ((~B) & D)) |
| #define | WS_SHIFT |
| #define | K 0x6ED9EBA1 |
| #define | ft(B, C, D) (B ^ C ^ D) |
| #define | K 0x8F1BBCDC |
| #define | ft(B, C, D) ((B & (C | D)) | (C & D)) |
| #define | K 0xCA62C1D6 |
| #define | ft(B, C, D) (B ^ C ^ D) |
Functions |
| void | SHA1Hash (SHA1Instance *Inst, unsigned char *Buffer) |
| void | SHA1Init (SHA1Instance *Inst) |
| void | SHA1Process (SHA1Instance *Inst, unsigned char *Buffer, long Length) |
| void | SHA1Finish (SHA1Instance *Inst, unsigned char *Hash, long HashLen) |
This file is distributed "AS IS" without warranty of any kind. Novus Delta, LLC. does not guarantee the fitness of the contents of this file for any particular purpose.
Copyright (C) 2001-2004 Novus Delta, LLC. All Rights Reserved.